package com.example.demo;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;

/**
 * @author airhead
 */
@Controller
@Mapping("/admin/**")
public class AdminGateway extends BaseGateway {
  @Override
  protected void register() {
    filter(-1, new ViewPathFilter());
    addFilters(bw -> "admin".equals(bw.tag()));

    addBeans(bw -> "admin".equals(bw.tag()));
  }
}
